package com.ocm.tourism.web;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@RequestMapping("/admin")
@Controller
public class AdminController {

   @RequestMapping(value="/login", method=RequestMethod.GET)
   public String viewLoginPage() {
      return "admin/login";
   }

   @RequestMapping(value="/hasnopermission", method=RequestMethod.GET)
   public String viewErrorPage() {
      return "admin/hasnopermission";
   }

   @RequestMapping(value="/servicepermission", method=RequestMethod.GET)
   public String viewServicePermissionErrorPage() {
      return "admin/servicepermission";
   }
}
